#!/bin/sh
for f in *.jpg; do
    mogrify -resize 400x400 "$f"
done
